/**
 * ...
 * @author Hatshepsout
 */


function Localization()
{
	this._data = new Object();
	Localization._instance = this;
}

Localization.prototype._data = null;
Localization._instance = null;
Localization.getInstance = function()
{
	var instance = Localization._instance || new Localization();
	return instance;
};

Localization.prototype.addLabel = function(p_label, p_value, p_lang)
{
	p_lang = p_lang || "fr_FR";
	this._data[p_lang] = this._data[p_lang] || new Object();
	this._data[p_lang][p_label] = p_value;
};

Localization.prototype.getLabel = function(p_label, p_lang )
{
	p_lang = p_lang || "fr_FR";
	this._data[p_lang] = this._data[p_lang] || new Object();
	return this._data[p_lang][p_label] || p_label;
};

